package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 历史会话对象 historical_sessions
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class HistoricalSessions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会话ID数据库自增 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 会话名称 */
    @Excel(name = "会话名称")
    private String sessionName;

    /** 会话日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会话日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sessionDate;

    /** 会话状态 */
    @Excel(name = "会话状态")
    private String sessionStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setSessionName(String sessionName) 
    {
        this.sessionName = sessionName;
    }

    public String getSessionName() 
    {
        return sessionName;
    }
    public void setSessionDate(Date sessionDate) 
    {
        this.sessionDate = sessionDate;
    }

    public Date getSessionDate() 
    {
        return sessionDate;
    }
    public void setSessionStatus(String sessionStatus) 
    {
        this.sessionStatus = sessionStatus;
    }

    public String getSessionStatus() 
    {
        return sessionStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("sessionName", getSessionName())
            .append("sessionDate", getSessionDate())
            .append("sessionStatus", getSessionStatus())
            .toString();
    }
}
